<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: wickr_ec_curve_t</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">wickr_ec_curve_t</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structwickr__ec__curve.html">wickr_ec_curve</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Metadata about curve types to help with key generation, and signatures.  <a href="structwickr__ec__curve.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structwickr__ec__key.html">wickr_ec_key</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Representation of public and private Elliptic Curve Keypair information as buffers.  <a href="structwickr__ec__key.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga912f46bc12a39f57d8d1b87a639f7cdf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ec__curve.html#ga912f46bc12a39f57d8d1b87a639f7cdf">wickr_ec_key_create</a> (<a class="el" href="structwickr__ec__curve.html">wickr_ec_curve_t</a> curve, <a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *pub_data, <a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *pri_data)</td></tr>
<tr class="separator:ga912f46bc12a39f57d8d1b87a639f7cdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf12eff11d78b2ce9ff32710406d58d4f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ec__curve.html#gaf12eff11d78b2ce9ff32710406d58d4f">wickr_ec_key_copy</a> (const <a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a> *source)</td></tr>
<tr class="separator:gaf12eff11d78b2ce9ff32710406d58d4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac18ac86b270f540bf5a55ad271ab0568"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ec__curve.html#gac18ac86b270f540bf5a55ad271ab0568">wickr_ec_key_destroy</a> (<a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a> **key)</td></tr>
<tr class="separator:gac18ac86b270f540bf5a55ad271ab0568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35d0968431b69993b7a6e3351d503d72"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structwickr__ec__curve.html">wickr_ec_curve_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ec__curve.html#ga35d0968431b69993b7a6e3351d503d72">wickr_ec_curve_find</a> (uint8_t identifier)</td></tr>
<tr class="separator:ga35d0968431b69993b7a6e3351d503d72"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga35d0968431b69993b7a6e3351d503d72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga35d0968431b69993b7a6e3351d503d72">&#9670;&nbsp;</a></span>wickr_ec_curve_find()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structwickr__ec__curve.html">wickr_ec_curve_t</a>* wickr_ec_curve_find </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>identifier</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Find an EC key by numerical identifier</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">identifier</td><td>the identifier in which to return the curve information for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the requested curve information, or NULL if no matching information can be found </dd></dl>

</div>
</div>
<a id="gaf12eff11d78b2ce9ff32710406d58d4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf12eff11d78b2ce9ff32710406d58d4f">&#9670;&nbsp;</a></span>wickr_ec_key_copy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a>* wickr_ec_key_copy </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a> *&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy an EC Key</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>the EC key to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated EC key holding a deep copy of the properties of 'source' </dd></dl>

</div>
</div>
<a id="ga912f46bc12a39f57d8d1b87a639f7cdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga912f46bc12a39f57d8d1b87a639f7cdf">&#9670;&nbsp;</a></span>wickr_ec_key_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a>* wickr_ec_key_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwickr__ec__curve.html">wickr_ec_curve_t</a>&#160;</td>
          <td class="paramname"><em>curve</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *&#160;</td>
          <td class="paramname"><em>pub_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *&#160;</td>
          <td class="paramname"><em>pri_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create an Elliptic Curve Keypair from components</p>
<p>NOTE: This function does not have the capability to generate key pair information, it simply constructs the data structure using pre-generated components. A crypto engine is required to generate random keypairs</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">curve</td><td>see '<a class="el" href="structwickr__ec__key.html" title="Representation of public and private Elliptic Curve Keypair information as buffers.">wickr_ec_key</a>' property documentation </td></tr>
    <tr><td class="paramname">pub_data</td><td>see '<a class="el" href="structwickr__ec__key.html" title="Representation of public and private Elliptic Curve Keypair information as buffers.">wickr_ec_key</a>' property documentation </td></tr>
    <tr><td class="paramname">pri_data</td><td>see '<a class="el" href="structwickr__ec__key.html" title="Representation of public and private Elliptic Curve Keypair information as buffers.">wickr_ec_key</a>' property documentation. May be NULL to represent a public key </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated elliptic curve key representing either a public or private key. Takes ownership of the passed inputs </dd></dl>

</div>
</div>
<a id="gac18ac86b270f540bf5a55ad271ab0568"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac18ac86b270f540bf5a55ad271ab0568">&#9670;&nbsp;</a></span>wickr_ec_key_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wickr_ec_key_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwickr__ec__key.html">wickr_ec_key_t</a> **&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destroy an EC Key</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>a pointer to the key to destroy. All properties of '*key' will also be destroyed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
